package com.objectproject.main.model;


public class MyLocale {
	
	private int localeId;
	private String languageString;
	private String countryString;
	private String toString;
	private String localeLanguage;
	
	public int getLocaleId() {
		return localeId;
	}

	public void setLocaleId(int localeId) {
		this.localeId = localeId;
	}

	public String getLanguageString() {
		return languageString;
	}

	public void setLanguageString(String languageString) {
		this.languageString = languageString;
	}

	public String getCountryString() {
		return countryString;
	}

	public void setCountryString(String countryString) {
		this.countryString = countryString;
	}

	public String getToString() {
		return toString;
	}

	public void setToString(String toString) {
		this.toString = toString;
	}

	public String getLocaleLanguage() {
		return localeLanguage;
	}

	public void setLocaleLanguage(String localeLanguage) {
		this.localeLanguage = localeLanguage;
	}

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof MyLocale){
			if(this.localeId == 0 || ((MyLocale)obj).localeId == 0){
				return false;
			}else if(this.localeId == ((MyLocale)obj).localeId){
				return true;
			}
		}
		return false;
	}

	@Override
	public String toString() {
		return toString;
	}
}
